﻿using System;
using System.Collections.Generic;
using System.Text;

namespace GraffitiExtras.Plugins.CommunityCredit
{
    /// <summary>
    /// Represents a credit that is achieved by an earner.
    /// </summary>
    internal class EarnersCredit
    {
        #region Properties and fields

        /// <summary>
        /// Unique identifier.
        /// </summary>
        public int ID { get; set; }

        /// <summary>
        /// The earner's email address.
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// The task description.
        /// </summary>
        public string Task { get; set; }

        /// <summary>
        /// The URL reference of the task.
        /// </summary>
        public string ReferenceURL { get; set; }

        /// <summary>
        /// The date when a task is achieved by an earner.
        /// </summary>
        public DateTime Date { get; set; }

        /// <summary>
        /// The earner's name.
        /// </summary>
        public string Source { get; set; }

        /// <summary>
        /// The source.
        /// </summary>
        public string Category { get; set; }

        /// <summary>
        /// The points that are achieved.
        /// </summary>
        public int Points { get; set; }

        /// <summary>
        /// The earner's name.
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Active points.
        /// </summary>
        public string PointsActive { get; set; }

        /// <summary>
        /// The date when the credit is added.
        /// </summary>
        public DateTime DateAdded { get; set; }

        /// <summary>
        /// The name of the last person who has updated the credit.
        /// </summary>
        public string LastChangeBy { get; set; }

        /// <summary>
        /// The date when the last change is made to the credit.
        /// </summary>
        public DateTime LastChangeDate { get; set; }

        #endregion
    }
}
